package com.freesky.biz.citic.mapper;

import com.freesky.biz.citic.domain.TCiticLucky;
import com.freesky.biz.citic.domain.TCiticNew;
import com.freesky.biz.citic.domain.TCiticNewEnroll;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CiticNewMapper {

    public List<TCiticNew> findList(TCiticNew entity);
    public List<TCiticNewEnroll> selectEnrollList(TCiticNewEnroll citicNewEnroll);

    public List<TCiticNew> selectUnProcessList();

    int getReceiveCount(@Param("mobile") String mobile,
                        @Param("type") String type);

    int updateProcessedById(@Param("processed") String processed,
                            @Param("id") String id);

    int updateProcessedResultById(TCiticNew citicNew);

    int insertIntegralMobileLog(TCiticNew citicNew);

    int updateRefundById(TCiticNew citicNew);

    int updateRechargeById(@Param("processed") String processed,
                            @Param("id") String id);
}
